/**
 * 
 */
var myCtrl = angular.module("myApp.point",[]);
myCtrl.controller('pointController',["$rootScope","$scope","$filter", "pointService","$state","checkAuthService","$location", function($rootScope,$scope,$filter,pointService,$state,checkAuthService,$location){
	/*var url = $location.url();
	if(url.split("=")[1] != undefined){
		var code = url.split("=")[1].split("&")[0];
		checkAuthService.checkAuthCode(code).success(function(result){
			var data = result.data;
			var openId = result.openId;
			if(data.custId === undefined){
//				window.location.href = "/logout?openId = "openId;
				document.cookie = "openId=" + openId;
				$location.path("/login")
			}
		})
	}*/
	var res = pointService.queryAccountInfo().success(function(result){
		if(result.code == 0){
			$scope.items = result.data;
		}
	})
	
}])